<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>MorphAnimMesh - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
		<p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → <a href="Mesh.html">Mesh</a> → </p>
	<h1 translate="no">MorphAnimMesh</h1>
		<section>
			<header>
				<div class="class-description"><p>A special type of an animated mesh with a simple interface
for animation playback. It allows to playback just one animation
without any transitions or fading between animation changes.</p></div>
			</header>
			<article>
				<h2 class="subsection-title">Import</h2>
				<p><span translate="no">MorphAnimMesh</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
				<pre><code class="language-js">import { MorphAnimMesh } from 'three/addons/misc/MorphAnimMesh.js';</code></pre>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="MorphAnimMesh" translate="no">new <a href="#MorphAnimMesh">MorphAnimMesh</a><span class="signature">( geometry : <span class="param-type"><a href="BufferGeometry.html">BufferGeometry</a></span>, material : <span class="param-type"><a href="Material.html">Material</a> | Array.&lt;<a href="Material.html">Material</a>></span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Constructs a new morph anim mesh.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>geometry</strong>
									</td>
									<td class="description last">
										<p>The mesh geometry.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>material</strong>
									</td>
									<td class="description last">
										<p>The mesh material.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<h2 class="subsection-title">Properties</h2>
				<div class="member">
					<h3 class="name" id="activeAction" translate="no">.<a href="#activeAction">activeAction</a><span class="type-signature"> : <a href="AnimationAction.html">AnimationAction</a></span> </h3>
					<div class="description">
						<p>The current active animation action.</p>
						<p>Default is <code>null</code>.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="mixer" translate="no">.<a href="#mixer">mixer</a><span class="type-signature"> : <a href="AnimationMixer.html">AnimationMixer</a></span> </h3>
					<div class="description">
						<p>The internal animation mixer.</p>
					</div>
				</div>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="playAnimation" translate="no">.<a href="#playAnimation">playAnimation</a><span class="signature">( label : <span class="param-type">string</span>, fps : <span class="param-type">number</span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Plays the defined animation clip. The implementation assumes the animation
clips are stored in <a href="Object3D.html#animations">Object3D#animations</a> or the geometry.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>label</strong>
									</td>
									<td class="description last">
										<p>The name of the animation clip.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>fps</strong>
									</td>
									<td class="description last">
										<p>The FPS of the animation clip.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<h3 class="name name-method" id="setDirectionBackward" translate="no">.<a href="#setDirectionBackward">setDirectionBackward</a><span class="signature">()</span> </h3>
					<div class="method">
						<div class="description">
							<p>Sets the animation playback direction to &quot;backward&quot;.</p>
						</div>
					</div>
					<h3 class="name name-method" id="setDirectionForward" translate="no">.<a href="#setDirectionForward">setDirectionForward</a><span class="signature">()</span> </h3>
					<div class="method">
						<div class="description">
							<p>Sets the animation playback direction to &quot;forward&quot;.</p>
						</div>
					</div>
					<h3 class="name name-method" id="updateAnimation" translate="no">.<a href="#updateAnimation">updateAnimation</a><span class="signature">( delta : <span class="param-type">number</span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Updates the animations of the mesh. Must be called inside the animation loop.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>delta</strong>
									</td>
									<td class="description last">
										<p>The delta time in seconds.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/misc/MorphAnimMesh.js" translate="no" target="_blank" rel="noopener">examples/jsm/misc/MorphAnimMesh.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>